package com.chey.dao;

import com.chey.domain.Updata;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author JanYao
 * @version 0.1
 */
@Mapper
public interface ApplyDao {
   @Insert("insert into UPDATEDATA values(#{cfno},#{flid},#{star},#{ends},#{startTime},#{endTime},#{text},#{status},#{createtime},#{manager})")
    public Integer apply(Updata data);

   @Select("select * from UPDATEDATA")
   public List<Updata> select();
   @Update("update UPDATEDATA set STATUS=#{status} where CFNO=#{cfno} and FLID=#{flid}")
   public Integer update(Updata data);
}
